Combine salt, pepper, sugar, soy sauce, fish sauce and ketchup together in a sealable plastic bag. Add beef cubes, mix well to coat, and marinate for 15 minutes. Heat oil in a large skillet over high heat and add garlic and onion; saute for 2-3 minutes. Add beef and stir-fry until browned. Serve immediately with rice.