Heat olive oil over medium heat. Add onions and garlic. Sauté until onions begin to go translucent, approximately 5 minutes. Add mushrooms and cook another 5 minutes, until excess liquid from mushrooms has evaporated. If using ground beef, add the onion and mushroom mixture to the ground beef. Add salt and pepper to taste.