There are different opinions on this for what works for different people.
When bulking, I prefer fairly even mixes (33/33/33 to 40/30/30) of carbs, complete proteins, and fats in every meal except my last meal before bed in which i mostly cut out carbs altogether and immediately post-workout in which I take in very high carbs with virtually no fats. Start with a daily calorie intake of about 18-20 times your bodyweight in pounds and check your weight and bodyfat caliper readings at least once a week at the same time of the day. Gradually adjust your daily calorie intake up or down according to results.
For cutting, I prefer a cyclical no-carb approach and occasionally a very high protein moderate-carb approach to change things up.