Choose real food:
Enjoy your bar:
Before/During a workout:
As you can see, there are so many different scenarios and situations which make it hard for me to give a general recommendation for bars.
1) Prioritize real food, always.
2) Keep a bar on hand for emergency situations.
3) Bars should be consumed with a purpose, not out of convenience.