The two-day visit will be one of Mr. Putin 's last foreign trips before he steps down from office next month , when Dmitry Medvedev will replace him .