How can I build muscle for baseball?

Certified trainer. Assuming you're in good health, seeing a certified trainer who specializes in baseball could be a good source for improving the muscles involved in that sport. Ask for references from fellow athletes or your coaches.
Long tossing. Long tossing is a great way to slowly build arm strength. It's a little monotonous, but it works!