Heat the olive oil in a frying pan, add the onion and garlic and fry until soft. Add the chopped mushroom stalks and pepper and cook until softened. Spoon the mixture into the baked mushrooms.