On the Waring problem for polynomials rings