Cut the beef and mushrooms into bite-sized pieces.
Slice the onion thinly.
Heat oil in a pan and stir-fry the beef.
Season the beef with salt and pepper.
Add the mushrooms and onion, and stir-fry together.
Add soy sauce, minced garlic, and sugar, and continue to stir-fry.
Serve the stir-fried mixture over rice.