I agree with a healthy high calorie diet but I have found that it's really difficult to put on weight with food alone. I try to lift heavy weights, especially legs. Squats, lounges, hamstring curls, etc. Also exercising your larger muscle groups requires more O2, building better lung function...