We give the necessary and sufficient conditions for a gradient Ricci-Yamabe soliton with warped product metric. As physical applications, we consider gradient Ricci-Yamabe solitons on generalized Robertson-Walker space-times and standard static space-times.