title_body: Making Coffee Beans Edible
upvoted_answer: Roasted coffee beans (from which you'd brew coffee as usual) are certainly edible -- chocolate-covered coffee beans are an example. They don't need any different or additional processing beyond ordinary roasting; I'm guessing that was what was in your bar. Chew a whole roasted coffee bean; does it taste similar?
  
  If you're asking about green beans, a quick search suggests that raw coffee beans contain some questionable chemicals; however, this question about the edibility of coffee cherries seems to indicate that they're not harmful...