Preheat grill for medium heat and lightly oil the grate.
Place yellow squash and zucchini on a square of aluminum foil; sprinkle with lemon zest, lemon juice, and butter. Season with salt, black pepper, and cayenne pepper. Wrap the aluminum foil over the vegetables.
Cook vegetables on the preheated grill until tender, about 30 minutes.