Preheat the oven to 350 degrees Fahrenheit.
Finely chop the onion and mince the garlic and add to a large pan or dutch oven with the oil.
Saute until the onion starts to look translucent.
Add all remaining ingredients and stir to combine. Taste and adjust flavors as desired. The "strength" of the flavors will deepen as the beans bake, but it's always a good idea to taste now and add more of anything you see fit.
If using a cast iron pan or dutch oven you can keep it right in there, otherwise transfer to an oven safe baking dish.
Cover with foil and bake for 45 minutes.
Remove the foil, stir, and serve warm. If you want them more saucy, add a splash of veggie broth and stir.