Preheat oven to 350°F
Cook bacon until crispy, then chop
Mix baked beans, ketchup, brown sugar, mustard, Worcestershire sauce, and pepper in a bowl
Stir in diced onion and bacon
Pour mixture into baking dish
Bake for 25-30 minutes until heated through