Preheat the oven to 400 degrees. Coat an 8-inch baking dish with cooking spray.
Cook the spaghetti in salted water, according to the package instructions.
While the pasta is cooking, combine the ricotta cheese, basil, minced garlic, egg, Parmesan cheese, sea salt, and freshly cracked pepper to taste. Mix well until thoroughly combined.
Drain the pasta, then return it to the pot it was cooked in.
Add the spaghetti sauce and mix until noodles are evenly coated.
Place half of the spaghetti into the baking dish. Spoon the ricotta cheese on top of the spaghetti, leaving an inch border around the edges.
Cover the ricotta mixture with the remaining spaghetti. Sprinkle the top with mozzarella cheese, olives, and tomato slices.
Season the tomatoes with sea salt and freshly cracked pepper, to taste, then sprinkle with a bit of Parmesan cheese.
Place into the oven and bake for 25-30 minutes.
Remove from the oven and let it cool for 5-10 minutes before slicing and serving. Enjoy.