Ripe tomatoes are best for this summery dish. Slideshow: More Macaroni and Cheese Recipes
Preheat the oven to 375°F.
In a large pot of boiling salted water, cook the pasta until al dente, then drain.
Mash the garlic into a paste with a pinch of salt and place in a large bowl. Chop the to-matoes and add to the bowl. Stir in the oil, zest, juice, sugar (if using), 1 teaspoon salt and 3/4 teaspoon pepper. Reserve the sauce.
Toss the ziti with the tomato sauce in the bowl, then transfer to an oiled 3-quart baking dish. Sprinkle the cheeses evenly over top and bake until the cheeses are melted, about 15 minutes. Serve.