2 tablespoon unsalted butter 4 small apples or firm pears, cored and cut in slices and/or wedges; ¼ cup granulated sugar