Constipated baby?

Lately my son has been grunting and crying a lot, arching his back and his poops have been less runny (more paste-like) than normal. He refuses to eat his bottles sometimes. It's been like this for about 3 days. Anyone have tips?