Heat oil in a medium skillet over medium high heat. Add pineapple, sugar, and ancho chili powder and stir to coat. Cook, stirring occasionally, for 4 to 5 minutes, until pineapple caramelizes with a nice golden-brown color. You can grill the pineapple as well, if desired!