We study the impact of government spending shocks on the distribution of income and wealth between cohorts and the associated welfare effects in a dynamic stochastic overlapping generations model with two types of households, Ricardian households and rule-of-thumb consumers. We demonstrate that an unexpected increase in government spending decreases income and wealth inequality. In contrast to the conventional wisdom that the financing of government expenditures by debt rather than taxes especially burdens young generations, we find that debt-financing also harms Ricardian households during retirement. The crucial element in our analysis is a wealth effect that results from the decline in the price of capital due to higher government debt.