Preheat the oven to 350°F.
In a 2 ½-quart casserole dish, combine the beans and marinara sauce.
If using ricotta, dollop it over the beans.
Sprinkle with the cheese.
Bake the beans until the sauce is bubbling and the cheese is melted, about 20 minutes.
