While the puff pastry cooks, slice your tomatoes and onions and add them to a cookie sheet. Also add your whole cloves of garlic. Brush all sides with 2 Tbsp. of your olive oil and sprinkle on salt and pepper to taste
Once the pastry is done, preheat your oven to 425 and roast the tomatoes, onions and garlic for 20 minutes.
When done, combine the Ricotta cheese, roasted garlic, 2 Tbsp. of olive oil, basil and the ¼ tsp. of salt and ¼ tsp of pepper in a small food processor. Blend together lightly until the garlic and oil are well combined. You can also do this by hand if you're fine with having chunkier bits of garlic.
Push down the center of your puff pastry lightly and then spread your Ricotta mix onto the puff pastry. Layer on your tomatoes and onions. If you want to add arugula, add it before layering your tomatoes and onions.
Sprinkle with additional salt and pepper and extra chopped basil. If you want to add balsamic drizzle it on right before you serve the tart.