Getting Rock Smash in Pokémon Ruby is easy once you know where to go. Head to Mauville City and look for one of the first houses you come across.
Inside, a character will hand you HM06, which is Rock Smash. With that in hand, you can teach it to a compatible Pokémon and start smashing those pesky rocks out of your way.