In a medium saucepan over high heat, brown the onion in the oil. Add the garlic, spices and rice. Season with salt and pepper. Continue cooking over medium heat, stirring until the rice just begins to stick to the bottom of the pan. Add the water. Stir and bring to a boil.