Arrange tomatoes, eggplant, zucchini, mushrooms, peppers and onions on large roasting pan. Drizzle with olive oil and sprinkle with salt and pepper. Cut top quarter of garlic heads and wrap garlic in foil.
Roast vegetables and garlic at 400 oven for 45 minutes, or until browned. Note: the garlic might be done before the vegetables, so don't let it get overcooked.
Cook pasta in boiling water until tender. Drain and rise with cold water.
In a large bowl, combine noodles with roasted vegetables. Squeeze in garlic,. Add pureed tomatoes, ricotta, basil, oregano and mozzarella. Taste and adjust seasonings.
Transfer mixture to a 13 x 9 baking dish (or 2 8 x 8 dishes) and sprinkle with Parmesan. Cover and bake in preheated 350 oven for 30 minutes. Uncover and cook for 20 - 30 minutes longer, or until lightly browned. Allow to rest for 10 minutes before serving.