Werner, you would definitly want to cook them first. Unless a pot of beans were in the cooker for a LONG time, I wouldn't take the chance. Plus, if you put them in raw, you wouldn't be adding much flavor wise, and the texture would be iffy.
Smoke them alongside the ribs with some rub, and then dice up the meat into good size chunks. This stuff added to beans or chili, or whatever, will really perk them up. Great flavor addition.
Or you can save the raw scraps and dice it up and use it for tacos or green chile verde, etc. Alot of options, even homemade sausage.