Melt the butter and stir it into the cake batter.
Cut the pears into large cubes and fold them into the batter.
For an even more visually appealing result, you can leave the pear whole with the stem attached and then place it upright in the cake (see photo)!