steroids do not heal, they actually keep your body from healing. when you use steroids that is just more work for your body and strain.
the best way to heal an injury is rest. a hammy tear that doesn't require surgery will heal on its own if you let it. so this means no leg work for a while. once it is healed come back slowly