In a large skillet, heat the olive oil over medium-high heat. Add the onions and garlic. Cook until the onions are tender, 3 to 4 minutes. Add the zucchini and cook until the zucchini is almost tender, 4 to 5 minutes. Stir in the tomato sauce and cook until the mixture is heated through. Serve immediately.