Ibuprofen is a toxin, if it has been less then 30 minutes. Give hydrogen peroxide. The dosage is 1 teaspoon per 10 pounds. You can read more below.
http://www.petplace.com/dogs/how-to-induce-vomiting-emesis-in-dogs/page1.aspx
But if it has been longer you should take them to a veterinarian.
Veterinary Assistant
7+ years of veterinary technician experience. Also enrolled Penn Foster College since 2005