I think this is one of those issues where the deeper you dig, the murkier it gets - and everyone who has spent a lot of time thinking about these issues.
Traditionally, an engineer is responsible for capturing sound - microphone choice, gear, etc. A producer can have a number of different responsibilities - anything from songwriting to judging performances - setting mood, and (perhaps most importantly) choosing which songs to work on!