The best treatment for pulled muscles is the RICE treatment. Rest, Ice, Compression and elevation.
If you Rest, healing time will be quicker. Ice reduces pain, Compression reduces swelling, and elevaion also reduces swelling. In the long run, the RICE method will prevent a pulled muscle from getting worse.