"It is curious how common sense, wriggling for an escape from absurd conclusions, has been apt to reach a preference for wholly ‘wasteful’ forms of loan expenditure rather than for partly wasteful forms, which, because they are not wholly wasteful, tend to be judged on strict ‘business’ principles. For example, unemployment relief financed by loans is more readily accepted than the financing of improvements at a charge below the current rate of interest; whilst the form of digging holes in the ground known as gold-mining, which not only adds nothing whatever to the real wealth of the world but involves the disutility of labour, is the most acceptable of all solutions." - Keynes
If one looks at the composition of debt 1920-1950 what happened during WWII is the US government essentially took all of the commercial and consumer debt onto it's own books.
That's a crass (although depressingly common) straw man of one of Keynes' views.
He mentioned that paying people to dig a hole/fill it up was one way - though emphatically not the most efficient way you could escape from a liquidity trap.