Preheat the oven to 400 degrees. Coat an 8 inch baking dish with cooking spray.
Cook the spaghetti in salted water, per 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 place it back into the pot it was cooked in. Add the spaghetti sauce and mix until evenly coated. Place half of the spaghetti into the baking dish. Spoon the ricotta cheese on top of the spaghetti and 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.