Preheat your oven to 375°F (190°C). Spray 9x13 baking dish with cooking spray, set aside.
Combine the cottage cheese and softened cream cheese in a medium mixing bowl. Mix well until smooth.
In a large skillet, cook the ground Italian sausage or beef over medium heat until browned. Add the chopped onion and minced garlic, and cook until the onion is softened. Add premade marinara sauce and seasonings. Simmer the sauce for about 10-15 minutes.
Spread a thin layer of the meat sauce on the bottom of the prepared baking dish. Place half of the frozen ravioli in a single layer, top with sauce. Sprinkle half of the cheese mixture evenly over the ravioli. Sprinkle a portion of shredded mozzarella and Parmesan cheese.
Repeat the layers with the remaining ravioli, sauce, cheese mixture, and shredded cheese.
Cover the baking dish with aluminum foil and bake in the preheated oven for 35-40 minutes, or until the cheese is melted and bubbly, and the ravioli are cooked through.
Allow the casserole to cool for a few minutes before serving. Garnish with fresh basil or parsley if desired.