In this paper, following the approach by Dubé (1990) and by applying the Hilbert series method, we provide an efficient algorithm to compute the Macaulay constants of the quotient ring of a monomial ideal without computing any exact cone decomposition for the quotient ring. Then, based on this construction and the method proposed by Mayr and Ritscher (2013), a new upper bound for the maximum degree of the elements of any reduced Gröbner basis of an ideal generated by a set of homogeneous polynomials is given. The new bound depends on the Krull dimension and the maximum degree of the generating set of the ideal. Finally, we show that the presented upper bound is sharper than the bounds proposed by Dubé (1990) and Mayr and Ritscher (2013).